package com.zhuhao.design_mode.behavioral_pattern.observer_pattern.java_listener;

/**
 * @Author zhuhao
 * @Date 2022/5/29 22:01
 * @desc
 */
public class MyEventListenerDemo01 implements MyEventListener{
    @Override
    public void handleEvent(MyEventObject object) {
        object.doEvent();

        if ("closeWindows".equals(object.getSource())) {
            System.out.println("MyEventListenerDemo01：doClose");
        }
    }
}
